package cn.gs.global.common.account;

// @author gs
import cn.gs.exchanger.ExchangerException;
import cn.gs.global.common.CntPriceInfo;

public interface IAccountServer {

    CntPriceInfo boughtObjOf(int ognid, int begin, int end, Object... objs) throws ExchangerException;

    CntPriceInfo boughtStockOf(int ognid, int begin, int end, Object... ids) throws ExchangerException;

    boolean buyObj(int frm, int too, long money, int obj, int cnt) throws ExchangerException;

    boolean buyStock(int frm, int too, long money, int ognid, int cnt) throws ExchangerException;

    CntPriceInfo costObjOf(int ognid, Object... objs) throws ExchangerException;

    CntPriceInfo costStockOf(int ognid, Object... ogns) throws ExchangerException;

    boolean dividend(int ognid, long money) throws ExchangerException;

    boolean exchange(int frm, int too, long money) throws ExchangerException;

    CntPriceInfo saledObjOf(int ognid, int begin, int end, Object... objs) throws ExchangerException;

    CntPriceInfo saledStockOf(int ognid, int begin, int end, Object... ids) throws ExchangerException;

    CntPriceInfo stockOffered(int ognid) throws ExchangerException;
}
